package com.olclass.web.dao;

import com.olclass.web.domain.College;
import com.olclass.web.domain.Comment;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

/**
 * FileName: RoleRepository.java
 * Author:   Administrator
 * Date:     2021/3/22 19:52
 * Description:
 */
public interface CommentRepository extends CrudRepository<Comment, String>, JpaSpecificationExecutor<Comment> {

    @Query("select u from Comment u where u.id=?1")
    public Comment findById(String id);

}